package cn.zero.handler;

import cn.zero.entity.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

/**
* @Description: User降级类
* @Author: Tang
* @Version: 1.0
* @Date:  2022/8/1 16:37
*/
public class UserFallBack {
    public static User getUserByIdBlockHandler(@PathVariable Long id, BlockException ex){
        return User.builder().id(-1L).intro("wuwuuw").name("降级啦").build();
    }
}
